package com.cameronyule.echonest.api.artist
{
	import com.cameronyule.echonest.abstract.APIClass;
	import com.cameronyule.echonest.api.EchonestRequest;
	
	import flash.net.URLRequestMethod;

	public class Artist extends APIClass
	{
		public function Artist(apiKey:String, apiVersion:String)
		{
			super(apiKey, apiVersion);
		}
		
		/**
		 * Upload a track to The Echo Nest's analyzer for analysis and later retrieval of track information.
		 * 
		 * http://developer.echonest.com/docs/method/upload/
		 * 
		 * @param url	A publicly available resource on the web
		 * @param file	A local file to POST as an upload
		 * @param wait	Defaults to 'N'. Whether to wait on the analyzer to complete; automatically cuts off after a minute
		 **/
		public function upload(url:String, wait:String = 'N'):void
		{
			call('upload', {url:url, wait:wait}, URLRequestMethod.POST);
		}
	}
}